#!/usr/bin/python2.5
# Copyright (c) 2008 MalFind

__author__ = "mavrommatis@gmail.com (Panayiotis Mavrommatis)"

from google.appengine.api import users

def GetUserData():
  user = users.get_current_user()  
  return {
    'user': user and user.nickname(),
    'admin': users.is_current_user_admin(),
    'logout' : users.create_logout_url("/"),
    'login' : users.create_login_url("/"),
  }
  
